home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmiSoft / Dev / C / Tinygl.lha / TinyGL / src / zfeatures.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-11-16  |  1.2 KB  |  46 lines

  1. #ifndef _tgl_features_h_
  2. #define _tgl_features_h_
  3.  
  4. //#include <mpatrol.h>
  5.  
  6. /* It is possible to enable/disable (compile time) features in this
  7.    header file. */
  8.  
  9. #define TGL_FEATURE_ARRAYS         1
  10. #define TGL_FEATURE_DISPLAYLISTS   1
  11. #define TGL_FEATURE_POLYGON_OFFSET 1
  12.  
  13. /*
  14.  * Matrix of internal and external pixel formats supported. 'Y' means
  15.  * supported.
  16.  * 
  17.  *           External  8    16    24    32
  18.  * Internal 
  19.  *  15                 .     .     .     .
  20.  *  16                 Y     Y     Y     Y
  21.  *  24                 .     Y     Y     .
  22.  *  32                 .     Y     .     Y
  23.  * 
  24.  *
  25.  * 15 bpp does not work yet (although it is easy to add it - ask me if
  26.  * you need it).
  27.  * 
  28.  * Internal pixel format: see TGL_FEATURE_RENDER_BITS
  29.  * External pixel format: see TGL_FEATURE_xxx_BITS 
  30.  */
  31.  
  32. /* enable various convertion code from internal pixel format (usually
  33.    16 bits per pixel) to any external format */
  34. #define TGL_FEATURE_16_BITS        1
  35. #define TGL_FEATURE_8_BITS         1
  36. #define TGL_FEATURE_24_BITS        1
  37. #define TGL_FEATURE_32_BITS        1
  38.  
  39.  
  40. //#define TGL_FEATURE_RENDER_BITS    15
  41. #define TGL_FEATURE_RENDER_BITS    16
  42. //#define TGL_FEATURE_RENDER_BITS    24
  43. //#define TGL_FEATURE_RENDER_BITS    32
  44.  
  45. #endif /* _tgl_features_h_ */
  46.